package com.earthchen.demo.domain;

import com.baomidou.mybatisplus.annotations.TableName;
import com.earthchen.core.domain.SuperEntity;

import javax.validation.constraints.NotEmpty;


/**
 * 系统角色实体
 */
@TableName("sys_role")
public class SysRole extends SuperEntity<SysRole> {

    @NotEmpty
    private String code;

    @NotEmpty
    private String name;

    private Short status = 1;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }


    @Override
    public String toString() {
        return "SysRole{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", status=" + status +
                '}';
    }
}